package com.crm.sys.model;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;

import com.crm.base.model.BaseModel;

/** 
Create Table

CREATE TABLE `crm_approve_configure_item` (
  `id` int(11) NOT NULL COMMENT 'id',
  `acid` int(11) DEFAULT NULL COMMENT '审批配置ID',
  `parentid` int(11) DEFAULT NULL COMMENT '父ID （可配二级 或3级审批流）',
  `uid` bigint(20) DEFAULT NULL COMMENT '审批人',
  `level` int(11) DEFAULT NULL COMMENT '审批等级',
  `state` int(11) DEFAULT NULL COMMENT '状态(0 启用  1 禁用)',
  `remark` text COMMENT '备注',
  `createdate` datetime DEFAULT NULL COMMENT '创建时间',
  `updatedate` datetime DEFAULT NULL COMMENT '修改时间',
  `updateuser` varchar(50) DEFAULT NULL COMMENT '修改人',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='审批配置项表'

*/
public class ApproveConfigureItem extends BaseModel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3705877263279539266L;
	private Integer acid; //审批配置ID
	private Integer parentid; //父ID （可配二级 或3级审批流）
	private Long uid; //审批人
	private Integer level; //审批等级
	private Integer state; //状态(0 启用  1 禁用)
	private String remark; //备注s
	
	private Integer changetype; //改变类型（用于修改时判断sql语句的写法）
	private Integer oldlevel; //改变前等级（用于修改，新增审批人）
	
	private String uname; //审批人姓名
	
	public void setAcid(Integer acid){
		this.acid=acid;
	}
	public Integer getAcid(){
		return acid;
	}
	public void setParentid(Integer parentid){
		this.parentid=parentid;
	}
	public Integer getParentid(){
		return parentid;
	}
	public void setUid(Long uid){
		this.uid=uid;
	}
	public Long getUid(){
		return uid;
	}
	public void setLevel(Integer level){
		this.level=level;
	}
	public Integer getLevel(){
		return level;
	}
	public void setState(Integer state){
		this.state=state;
	}
	public Integer getState(){
		return state;
	}
	public void setRemark(String remark){
		this.remark=remark;
	}
	public String getRemark(){
		return remark;
	}
	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}
	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public Integer getChangetype() {
		return changetype;
	}
	public void setChangetype(Integer changetype) {
		this.changetype = changetype;
	}
	public Integer getOldlevel() {
		return oldlevel;
	}
	public void setOldlevel(Integer oldlevel) {
		this.oldlevel = oldlevel;
	}
}

